#ifndef boxmodel_h
#define boxmodel_h

#include <vector>
#include <deque>

using std::vector;
using std::deque;

#include "../FoodObjects/Eatable.h"

class ListPanel;

class BoxModel: public ListBoxModel
{
private:
	deque<Eatable>& items;
	int rowHeight;
	ListPanel* panel;
	Image* fibreIcon;

public:
	BoxModel(ListPanel* panel, deque<Eatable>& food);
	int getNumRows();
	void paintListBoxItem(int rowNumber, Graphics& g, int width, int height, bool rowIsSelected);
	void listBoxItemClicked(int row, const MouseEvent& e);
	void mouseDoubleClick(const MouseEvent& e);
};

#endif
